package org.yly.game.rpggame.domain.model.monster;

import java.util.Date;

import org.yly.game.rpggame.domain.model.DomainEvent;

public class MonsterDeadEvent implements DomainEvent {

    private int eventVersion;
    private Date occurredOn;
    private String monsterId;

    public MonsterDeadEvent(String monsterId) {

        this.eventVersion = 1;
        this.occurredOn = new Date();
        this.monsterId = monsterId;
    }

    public int eventVersion() {
        return eventVersion;
    }

    @Override
    public Date occurredOn() {
        return this.occurredOn;
    }

    public String getMonsterId() {
        return this.monsterId;
    }

}
